<?php
header('Content-type:Text/html; charset=utf-8');
$a=new PDO('mysql:dbname=zc;charset=UTF8','root');
$s=$a->prepare('select z,m from aa');
$s->execute();
@$d=$s->fetchAll(PDO::FETCH_NAMED);
foreach($d as $z){
	echo $z['z'].'-'.$z['m'];
	echo "<br />";
}
//var_dump($s);
?>

